public class Z extends F {
    String name = "子类名字";

    public void ShowName(){
        String name = "局部名称";
        System.out.println(name);
        System.out.println(this.name);
        System.out.println(super.name);
    }

    @Override
    public void print1(){
        System.out.println("我是子类的print1方法");
    }

    public void ShowMethod(){
        print1();
        super.print1();
    }
}
